*,
*:before,
*:after {
	box-sizing: border-box;
}

body ul {
	margin: 0;
	padding: 0;
}


/*设置弹出框允许元素超出*/

body .test-css .layui-layer-content {
	overflow: visible;
}


/*设置layer标题透明图层靠前以便拖拽挪移*/

body .test-css .layui-layer-title {
	position: relative;
	background-color: transparent;
	border-color: transparent;
	z-index: 1;
	height: 59px;
}


/*设置最大最小关闭窗口按钮图层靠前*/

body .test-css .layui-layer-setwin {
	z-index: 2;
}


/*窗口模板初始设置*/

.im-view {
	position: relative;
	display: none;
	height: 100%;
}


/*实际标题栏*/

.im-view-title {
	position: absolute;
	top: -60px;
	height: 60px;
}


/*标题栏左侧设置颜色与内容同步*/

.im-view-title-left {
	height: 100%;
	background-color: #666;
}


/*标题栏中间设置颜色与内容同步*/

.im-view-title-center {
	height: 100%;
	background-color: #DEDEDE;
}


/*标题栏右侧设置颜色与内容同步 并增加底部辅助线*/

.im-view-title-right {
	height: 100%;
	border-bottom: #D0D0D0 solid 1px;
	background-color: #EEE;
}


/*.im-view-title-right div{
				height: 100%;
			}*/


/*左侧页样式*/

.im-view-left {
	background-color: #666;
	height: 100%;
}


/*中间页样式*/

.im-view-center {
	background-color: #DEDEDE;
	height: 100%;
	overflow: hidden;
}

.im-view-center:hover {
	overflow-y: scroll;
}


/*右侧页样式*/

.im-view-right {
	background-color: #EEE;
	height: 100%;
}

.user {
	margin: 5px;
	padding: 5px;
	line-height: 40px;
}


/*联系人鼠标悬停改变背景*/

.user:hover {
	background: #F3F3F3;
}

.user img {
	width: 40px;
	height: 40px;
	border-radius: 10%;
	margin: 5px 0 5px;
	"

}

.user span {
	padding-left: 10px;
	font-size: 16px;
}

.im-view-sendtext {
	position: relative;
	height: 30%;
	box-sizing: border-box;
}

.im-view-sendtext textarea {
	resize: none;
	box-sizing: border-box;
	border-width: 0;
	border-top-width: 1px;
	height: 70%;
	min-height: 0;
}

.im-view-sendtext button {
	position: absolute;
	right: 5%;
	bottom: 5%;
}

.im-record {
	padding: 15px;
}

.im-record li {
	margin-bottom: 15px;
}

.im-record-time {
	margin: 7px 0;
	text-align: center;
}

.im-record-time span {
	background-color: #dcdcdc;
	color: #fff;
	padding: 0 18px;
	border-radius: 2px;
}

.im-record-main {
	position: relative;
}

.im-record-main .avatar {
	width: 30px;
	height: 30px;
	float: left;
	margin: 0 10px 0 0;
	border-radius: 3px;
}

.im-record-main .send-uname {
	margin-bottom: 5px;
}

.im-record-main .text {
	display: inline-block;
	padding: 0 10px;
	max-width: calc(100% - 40px);
	min-height: 30px;
	line-height: 2.5;
	font-size: 9pt;
	text-align: left;
	word-break: break-all;
	background-color: #fafafa;
	border-radius: 4px;
}

.im-record .self {
	text-align: right;
}

.im-record .self .avatar {
	float: right;
	margin: 0 0 0 10px;
}

.im-record .self .text {
	background-color: #b2e281;
}